package com.bdqn.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.pojo.Right;
import com.bdqn.pojo.Role;

import java.awt.print.Pageable;
import java.util.List;

public interface RoleMapper {
    List<Role> list();
    public  List<Right> findAllRights();
    public List<Role> findAllRoles();
    public void deleteRoleById(long role);
    public void deleteRole(String roleName);
    public Page<Role> findRole(String roleName, Pageable pageable);
    public List<Role> findRightsByRole(Role role);
}
